package com.cy.controller;

import com.cy.anno.Controller;
import com.cy.anno.RequestMapping;
import com.cy.anno.Security;

/**
 * @Author ChenYan
 * @Date 2021/8/2 16:59
 * @Description
 */
@Security(value = {"wangwu","ermazi"})
@Controller
@RequestMapping("/demo")
public class DemoController {

    @Security(value = "zhangsan")
    @RequestMapping("/handle01")
    public String handle01(){
        System.out.println("进入到handle01");
        return "handle01 success";
    }

    @Security(value = "lisi")
    @RequestMapping("/handle02")
    public String handle02(String name){
        System.out.println("进入到handle02,name="+name);
        return "handle02 success";
    }

    @RequestMapping("/handle03")
    public String handle03(String name){
        System.out.println("进入到handle03,name="+name);
        return "handle03 success";
    }

}
